<!--  -->
<template>
  <div class="container">
    <el-container>
      <el-aside width="200px" style="background-color: #364760;"><AsideNav></AsideNav></el-aside>
      <el-container>
        <el-header
          style="color:#fff"
          ><el-row class="headbox" style="background-color: #364760;">
            <Header></Header>
          </el-row>
          <div class="headbox2">
            <el-breadcrumb separator="/">
              <el-breadcrumb-item v-for="item in breadcrumb" :key="item.path">{{
                item.meta.title
              }}</el-breadcrumb-item>
            </el-breadcrumb>
          </div>
        </el-header>
        <el-main>
          <div>
            <router-view></router-view>
          </div>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script >
import AsideNav from "../../components/chenlin/kuangjia/AsideNav.vue";
import Header from "../../components/chenlin/kuangjia/Header.vue";
export default {
  name: "Backstage",
  data() {
    return {};
  },
  computed: {
    breadcrumb() {
      console.log(this.$route.matched);
      return this.$route.matched;
    },
  },
  props: [],
  components: {
    AsideNav,
    Header,
  },
  created() {},
  mounted() {},
  methods: {},
};
</script>
<style lang='less' scoped>
* {
  padding: 0;
  margin: 0;
}
.container {
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
}
.el-container {
  height: 100%;
}
.el-header {
  height: 110px !important;
  background-color: #f4f6f5;
  color: #333;
  text-align: center;
  line-height: 60px;
  .headbox{
    background-color: white;
    height: 62px;
    padding-right: 50px;
  }
  .headbox2{
    padding: 20px;
    padding-left: 50px;
  }
}

.el-aside {
  background-color: #fff;
  color: #333;
  // text-align: center;
  line-height: 200px;
  overflow-y: scroll;
}

.el-main {
  background-color: #f4f6f5;
  color: #333;
  // text-align: center;
  // line-height: 160px;
  padding: 0 20px 20px 20px !important;
  > div {
    background-color: white;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 30px;
    border-radius: 10px;
  }
  .el-breadcrumb {
    margin-bottom: 50px;
  }
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
::-webkit-scrollbar {
  width: 5px;

  height: 16px;

  background-color: #f5f5f500;
}

/*定义滚动条轨道

 内阴影+圆角*/

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(154, 154, 154, 0);

  border-radius: 10px;

  background-color: #f5f5f500;
}

/*定义滑块

 内阴影+圆角*/

::-webkit-scrollbar-thumb {
  border-radius: 10px;

  -webkit-box-shadow: inset 0 0 6px rgba(203, 203, 203, 0.784);

  background-color: rgba(170, 169, 169, 0);
}
</style>